jQuery(document).ready( function($) {
	$('#breadcrumbs').jBreadCrumb();
	$('#nav').superfish({ autoArrows: false, speed: 'fast' });
	
	$(window).keydown( function(e) {
		switch(e.keyCode) {
			case 67: // c
			$.scrollTo('#comments', 50);
			break;
			
			case 74: // j
			if (prev_post_link) {
				window.location = prev_post_link;
			}
			break;
			
			case 75: // k
			if (next_post_link) {
				window.location = next_post_link;
			}
			break;
			
			case 84: // t
			$.scrollTo('#wrapper', 50);
			break;
			
			case 82: // r
			$.scrollTo('#commentsform', 50);
			break;
		}
	});
	
});
